﻿using OpenAdmin.Application.Services.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAdmin.Application.Services
{
    /// <summary>
    /// 操作功能服务
    /// </summary>
    public interface IOperationService
    {
        /// <summary>
        /// 获取菜单操作功能
        /// </summary>
        /// <returns></returns>
        Task<List<OperationResponseDto>> GetOperationsByMenuId(int menuId);

        /// <summary>
        /// 添加菜单功能
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        Task AddOperation(AddOperationRequestDto requestDto);

        /// <summary>
        /// 编辑菜单功能
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        Task EditOperation(EditOperationRequestDto requestDto);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteOperation(int id);
    }
}
